import requests
from lxml import etree
headers ={
    "user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36"
}
url = "https://music.163.com/discover/artist/cat?id=1001"

respones = requests.get(url,headers=headers)
html = etree.HTML(respones.text)
li_list = html.xpath('//div[@class="blk"]//li')
for li in li_list:
    href_a = url + li.xpath('./a/@href')[0]
    title = li.xpath('./a/text()')[0]
    respones = requests.get(url=href_a,headers=headers)
    html = etree.HTML(respones.text)
    li_list = html.xpath('//ul[@id="initial-selector"]/li')
    for li in li_list:
        href_a_full = url + li.xpath('./a/@href')[0]
        small_title = li.xpath('./a/text()')[0]
        respones = requests.get(url=small_title)
